package com.kc.sjwh.other.multiDataSource;

/**
 * 保存数据源标识的线程变量
 * @author zgh
 *
 */
public class ReplicationDataSourceHolder {
	public static final ThreadLocal<String> holder = new ThreadLocal<String>();
	
	public static String getDataSource() {
		return holder.get();
	}
	
	public static void putDataSource(String dataSourceName) {
		holder.set(dataSourceName);
	}
}
